Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 5: Positioning Shapes

../ch05/05fig07b.gif
Figure 5.7b

Translating 2.0 units along the X axis, 1.0 units along the Y axis, -2.0 units along the Z axis, and building a cylinder

05fig07b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Transform {
    translation 2.0 1.0 -2.0
    children [
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Cylinder { }
        }
    ]
}